package com.vallis.asfc.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;

import java.sql.Timestamp;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableLogic;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author vallis
 * @since 2020-08-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class AsfcExam extends Model<AsfcExam> {

    private static final long serialVersionUID = 1L;

    /**
     * 考试id
     */
    @TableId(value = "exam_id", type = IdType.AUTO)
    private Long examId;

    /**
     * 考试名称
     */
    private String examName;

    /**
     * 考试开始时间
     */
    private Timestamp examStartTime;

    /**
     * 考试结束时间
     */
    private Timestamp examEndTime;

    /**
     * 考试类别
     */
    private String examCode;

    /**
     * 考试等级
     */
    private Integer examLevel;

    /**
     * 是否只能会员报考1是0否
     */
    private Integer allowOfficeUser;

    /**
     * 允许最大年龄
     */
    private Integer allowAgeMax;

    /**
     * 允许最小年龄
     */
    private Integer allowAgeMin;

    /**
     * 删除状态
     */
    @TableLogic
    private Integer deleted;


    @Override
    protected Serializable pkVal() {
        return this.examId;
    }

}
